<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<div class="container all">
    <div id="allpages" class="containerpages">
        <div class="container header">
            <div class="span5">
                <div class="logo">
                    <a href="<%=basePath %>/index.jsp">
                        <img src="<%=basePath %>/image/logo.png" alt="商城"/>
                    </a>
                </div>
            </div>
            <div class="span9">
                <div class="headerAd">
                    <img src="<%=basePath %>/image/header.jpg" width="320" height="50" alt="正品保障" title="正品保障"/>
                </div>	</div>
            <div class="span10 last" style="float: right">
                <div class="topNav clearfix">
                    <ul>
                        <c:if test="${sessionScope.frontuser==null}">
                            <li id="headerLogin" class="headerLogin" style="display: list-item;">
                                <a href="<%=basePath %>/user/login">登录</a>|
                            </li>
                        </c:if>
                        <c:if test="${sessionScope.frontuser!=null}">
                            <li id="headerLogin" class="headerLogin" style="display: list-item;">
                                <a href="javascript:void()">${sessionScope.frontuser}</a>|
                            </li>
                        </c:if>

                        <li id="headerUsername" class="headerUsername" ></li>
                        <c:if test="${sessionScope.frontuser!=null}">
                            <li id="headerLogout" class="headerLogout" style="display: list-item;">
                                <a href="<%=basePath %>/user/logout">[退出]</a>|
                            </li>
                        </c:if>

                        <li>
                            <a>会员中心</a>
                            |
                        </li>
                        <li>
                            <a>购物指南</a>
                            |
                        </li>
                        <li>
                            <a>关于我们</a>
                        </li>
                    </ul>
                </div>
                <div class="cart">
                    <img src="<%=basePath %>/images/cart.png" alt="cart" style="width: 20px;height: 14px">
                    <a href="<%=basePath %>/car.jsp">购物车</a>
                    <img src="<%=basePath %>/images/order.png" alt="cart" style="width: 16px;height: 12px">
                    <a href="<%=basePath %>/order.jsp">我的订单</a>
                </div>
                <div class="phone">
                    客服热线:
                    <strong>987654/123465789</strong>
                </div>
            </div>
            <div class="span24">
                <ul class="mainNav">
                    <li>
                        <a href="<%=basePath %>/product/frontlist">首页</a>
                        |
                    </li>
                    <li>
                        <a >科学技术</a>
                        |
                    </li>
                    <li>
                        <a >生活休闲</a>
                        |
                    </li>
                    <li>
                        <a>社会科学</a>
                        |
                    </li>
                    <li>
                        <a>少儿读物</a>
                        |
                    </li>
                    <li>
                        <a>文化教育</a>|
                    </li>
                    <li>
                        <a>其他</a>
                    </li>
                </ul>
            </div>
        </div>

        </div>
    </div>
</div>